<!doctype html>



  


<html class="theme-next muse use-motion">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>



<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />












  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  
    
      
    

    
  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Microsoft YaHei:300,300italic,400,400italic,700,700italic|consolas:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.4.0" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.0.2" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="CSS3," />








  <link rel="shortcut icon" type="image/x-icon" href="http://ofy7k3v4s.bkt.clouddn.com/mylogo.png?v=5.0.2" />






<meta name="description" content="&amp;#x79C1;&amp;#x6709;&amp;#x524D;&amp;#x7F00;
&amp;#x5728;pc&amp;#x7AEF;&amp;#x5F00;&amp;#x53D1;&amp;#x7684;&amp;#x65F6;&amp;#x5019;  &amp;#x4F7F;&amp;#x7528;css3&amp;#x5C5E;&amp;#x6027;  &amp;#x6700;&amp;#x597D;&amp;#x52A0;&amp;#x4E0A;&amp;#x79C1;&amp;#x6709;&amp;#x524D;&amp;#x7F00;


-w">
<meta property="og:type" content="article">
<meta property="og:title" content="CSS3知识体系">
<meta property="og:url" content="https://hongqinma.github.io/2015/01/22/CSS3知识体系/index.html">
<meta property="og:site_name" content="HongqinMa' Blog">
<meta property="og:description" content="&amp;#x79C1;&amp;#x6709;&amp;#x524D;&amp;#x7F00;
&amp;#x5728;pc&amp;#x7AEF;&amp;#x5F00;&amp;#x53D1;&amp;#x7684;&amp;#x65F6;&amp;#x5019;  &amp;#x4F7F;&amp;#x7528;css3&amp;#x5C5E;&amp;#x6027;  &amp;#x6700;&amp;#x597D;&amp;#x52A0;&amp;#x4E0A;&amp;#x79C1;&amp;#x6709;&amp;#x524D;&amp;#x7F00;


-w">
<meta property="og:updated_time" content="2016-12-06T00:56:36.402Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="CSS3知识体系">
<meta name="twitter:description" content="&amp;#x79C1;&amp;#x6709;&amp;#x524D;&amp;#x7F00;
&amp;#x5728;pc&amp;#x7AEF;&amp;#x5F00;&amp;#x53D1;&amp;#x7684;&amp;#x65F6;&amp;#x5019;  &amp;#x4F7F;&amp;#x7528;css3&amp;#x5C5E;&amp;#x6027;  &amp;#x6700;&amp;#x597D;&amp;#x52A0;&amp;#x4E0A;&amp;#x79C1;&amp;#x6709;&amp;#x524D;&amp;#x7F00;


-w">



<script type="text/javascript" id="hexo.configuration">
  var NexT = window.NexT || {};
  var CONFIG = {
    scheme: 'Muse',
    sidebar: {"position":"left","display":"post"},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: '6347850919329138000',
      author: 'Hiraku'
    }
  };
</script>




  <link rel="canonical" href="https://hongqinma.github.io/2015/01/22/CSS3知识体系/"/>


  <title> CSS3知识体系 | HongqinMa' Blog </title>
</head>

<body itemscope itemtype="//schema.org/WebPage" lang="en">

  



  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "//hm.baidu.com/hm.js?10010323";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>








  
  
    
  

  <div class="container one-collumn sidebar-position-left page-post-detail ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="//schema.org/WPHeader">
      <div class="header-inner"><div class="site-meta custom-logo">
  
    <div class="site-meta-headline">
      <a>
        <img class="custom-logo-image" src="http://ofy7k3v4s.bkt.clouddn.com/photo.jpg"
             alt="HongqinMa' Blog"/>
      </a>
    </div>
  

  <div class="custom-logo-site-title">
    <a href="/"  class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <span class="site-title">HongqinMa' Blog</span>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>
  <p class="site-subtitle">Spell at all costs， to rush you in the future。</p>
</div>

<div class="site-nav-toggle">
  <button>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
  </button>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            Home
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            Categories
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            About
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            Archives
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            Tags
          </a>
        </li>
      

      
    </ul>
  

  
</nav>

 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                CSS3知识体系
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2015-01-22T20:44:09+08:00" content="2015-01-22">
              2015-01-22
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/CSS3/" itemprop="url" rel="index">
                    <span itemprop="name">CSS3</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/01/22/CSS3知识体系/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/01/22/CSS3知识体系/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          
              &nbsp; | &nbsp;
              <span class="page-pv"><i class="fa fa-file-o"></i>
              <span class="busuanzi-value" id="busuanzi_value_page_pv" ></span>
              </span>
          

          
            <span id="busuanzi_container_page_pv">  <span id="busuanzi_value_page_pv"></span> Views</span>
          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        <h2 id="&#x79C1;&#x6709;&#x524D;&#x7F00;"><a href="#&#x79C1;&#x6709;&#x524D;&#x7F00;" class="headerlink" title="&#x79C1;&#x6709;&#x524D;&#x7F00;"></a>&#x79C1;&#x6709;&#x524D;&#x7F00;</h2><blockquote>
<p><em>&#x5728;pc&#x7AEF;&#x5F00;&#x53D1;&#x7684;&#x65F6;&#x5019;  &#x4F7F;&#x7528;css3&#x5C5E;&#x6027;  &#x6700;&#x597D;&#x52A0;&#x4E0A;&#x79C1;&#x6709;&#x524D;&#x7F00;</em></p>
</blockquote>
<ul>
<li><code>-webkit-border-radius: 50%;</code><ul>
<li><em>&#x8C37;&#x6B4C;</em></li>
</ul>
</li>
<li><code>-moz-border-radius: 50%;</code><ul>
<li><em>&#x706B;&#x72D0;</em></li>
</ul>
</li>
<li><code>-o-border-radius: 50%;</code><ul>
<li><em>&#x6B27;&#x9E4F;</em></li>
</ul>
</li>
<li><code>-ms-border-radius:50%;</code><ul>
<li><em>IE</em></li>
</ul>
</li>
</ul>
<hr>
<h2 id="&#x9009;&#x62E9;&#x5668;"><a href="#&#x9009;&#x62E9;&#x5668;" class="headerlink" title="&#x9009;&#x62E9;&#x5668;"></a>&#x9009;&#x62E9;&#x5668;</h2><h3 id="&#x5C5E;&#x6027;&#x9009;&#x62E9;&#x5668;"><a href="#&#x5C5E;&#x6027;&#x9009;&#x62E9;&#x5668;" class="headerlink" title="&#x5C5E;&#x6027;&#x9009;&#x62E9;&#x5668;"></a>&#x5C5E;&#x6027;&#x9009;&#x62E9;&#x5668;</h3><ul>
<li><code>[attribute]</code><ul>
<li><em>&#x9009;&#x62E9;&#x5230;&#x6240;&#x6709;&#x5305;&#x542B; attribute &#x8FD9;&#x4E2A;&#x5C5E;&#x6027;&#x7684;&#x5143;&#x7D20;</em></li>
</ul>
</li>
<li><code>[attribute=value]</code> <ul>
<li><em>&#x9009;&#x62E9;&#x5230;&#x6240;&#x6709;&#x5305;&#x542B; attribute &#x8FD9;&#x4E2A;&#x5C5E;&#x6027;&#x7684;&#x5143;&#x7D20; &#x5E76;&#x4E14;&#x5C5E;&#x6027;&#x503C; &#x53EA;&#x80FD;&#x7B49;&#x4E8E;value</em></li>
</ul>
</li>
<li><code>[attribute!=value]</code> <ul>
<li><em>jquery&#x624D;&#x6709;&#xFF0C;css &#x662F;&#x6CA1;&#x6709;&#x8FD9;&#x4E2A;&#x9009;&#x62E9;&#x5668; &#x9009;&#x62E9;&#x5230;&#x6240;&#x6709;&#x5305;&#x542B; attribute &#x8FD9;&#x4E2A;&#x5C5E;&#x6027;&#x7684;&#x5143;&#x7D20; &#x5E76;&#x4E14;&#x5C5E;&#x6027;&#x503C; &#x53EA;&#x80FD;&#x4E0D;&#x7B49;&#x4E8E;value</em></li>
</ul>
</li>
<li><code>[attribute^=value]</code> <ul>
<li><em>&#x9009;&#x62E9;&#x5230;&#x6240;&#x6709;&#x5305;&#x542B; attribute &#x8FD9;&#x4E2A;&#x5C5E;&#x6027;&#x7684;&#x5143;&#x7D20; &#x5E76;&#x4E14;&#x5C5E;&#x6027;&#x503C; &#x4EE5;value&#x5F00;&#x5934;</em></li>
</ul>
</li>
<li><code>[attribute$=value]</code> <ul>
<li><em>&#x9009;&#x62E9;&#x5230;&#x6240;&#x6709;&#x5305;&#x542B; attribute &#x8FD9;&#x4E2A;&#x5C5E;&#x6027;&#x7684;&#x5143;&#x7D20; &#x5E76;&#x4E14;&#x5C5E;&#x6027;&#x503C; &#x4EE5;value&#x7ED3;&#x5C3E;</em></li>
</ul>
</li>
<li><code>[attribute*=value]</code> <ul>
<li><em>&#x9009;&#x62E9;&#x5230;&#x6240;&#x6709;&#x5305;&#x542B; attribute &#x8FD9;&#x4E2A;&#x5C5E;&#x6027;&#x7684;&#x5143;&#x7D20; &#x5E76;&#x4E14;&#x5C5E;&#x6027;&#x503C; &#x5305;&#x542B;value&#x8FD9;&#x4E2A;&#x5B57;&#x7B26;</em></li>
</ul>
</li>
<li><code>[attribute1][attribute2]</code></li>
</ul>
<hr>
<h3 id="&#x4F2A;&#x7C7B;&#x9009;&#x62E9;&#x5668;"><a href="#&#x4F2A;&#x7C7B;&#x9009;&#x62E9;&#x5668;" class="headerlink" title="&#x4F2A;&#x7C7B;&#x9009;&#x62E9;&#x5668;"></a>&#x4F2A;&#x7C7B;&#x9009;&#x62E9;&#x5668;</h3><h4 id="&#x5E8F;&#x4F2A;&#x7C7B;&#x9009;&#x62E9;&#x5668;"><a href="#&#x5E8F;&#x4F2A;&#x7C7B;&#x9009;&#x62E9;&#x5668;" class="headerlink" title="&#x5E8F;&#x4F2A;&#x7C7B;&#x9009;&#x62E9;&#x5668;"></a>&#x5E8F;&#x4F2A;&#x7C7B;&#x9009;&#x62E9;&#x5668;</h4><ul>
<li><code>E:first-child</code><ul>
<li><em>&#x4EE5;E&#x4E3A;&#x5B50;&#x5143;&#x7D20;  &#x786E;&#x5B9A;&#x7236;&#x7EA7;&#x5143;&#x7D20;  &#x627E;&#x5B83;&#x7684;&#x7B2C;&#x4E00;&#x4E2A;&#x5B50;&#x5143;&#x7D20; &#x5E76;&#x4E14;&#x8FD8;&#x8981;&#x662F;E</em></li>
</ul>
</li>
<li><code>E:last-child</code><ul>
<li><em>&#x4EE5;E&#x4E3A;&#x5B50;&#x5143;&#x7D20;  &#x786E;&#x5B9A;&#x7236;&#x7EA7;&#x5143;&#x7D20;  &#x627E;&#x5B83;&#x7684;&#x6700;&#x540E;&#x4E00;&#x4E2A;&#x5B50;&#x5143;&#x7D20; &#x5E76;&#x4E14;&#x8FD8;&#x8981;&#x662F;E</em></li>
</ul>
</li>
<li><code>E:nth-child(n)</code> <ul>
<li><em>&#x4EE5;E&#x4E3A;&#x5B50;&#x5143;&#x7D20;  &#x786E;&#x5B9A;&#x7236;&#x7EA7;&#x5143;&#x7D20;  &#x627E;&#x5B83;&#x7684;&#x7B2C;n&#x4E2A;&#x5B50;&#x5143;&#x7D20; &#x5E76;&#x4E14;&#x8FD8;&#x8981;&#x662F;E(&#x6709;&#x6548; 1-&#x65E0;&#x7A77;)</em><ul>
<li>n&#x9075;&#x5FAA;&#x7EBF;&#x6027;&#x53D8;&#x5316;&#xFF0C;&#x5176;&#x53D6;&#x503C;0&#x3001;1&#x3001;2&#x3001;3&#x3001;4&#x3001;&#x2026; &#x4F46;&#x662F;&#x5F53;n&lt;=0&#x65F6;&#xFF0C;&#x9009;&#x53D6;&#x65E0;&#x6548;&#x3002;</li>
<li>n&#x53EF;&#x662F;&#x591A;&#x79CD;&#x5F62;&#x5F0F;&#xFF1A;nth-child(2n)&#x3001;nth-child(2n+1)&#x3001;nth-child(-1n+5)&#x7B49;;</li>
<li>n&#x6CE8;&#x610F;:&#x4F4D;&#x7F6E;&#x7684;&#x5173;&#x7CFB;(n&#x4E00;&#x5B9A;&#x8981;&#x653E;&#x5728;&#x8868;&#x8FBE;&#x5F0F;&#x7684;&#x524D;&#x9762;)</li>
</ul>
</li>
</ul>
</li>
<li><code>:empty</code> &#x5143;&#x7D20;&#x4E3A;&#x7A7A;&#x65F6;&#x9009;&#x4E2D;</li>
<li><code>:target</code> &#x76EE;&#x6807;&#x4F2A;&#x7C7B;&#x9009;&#x62E9;&#x5668;&#xFF0C;&#x5B83;&#x9009;&#x4E2D;&#x7684;&#x5F53;&#x524D;&#x951A;&#x70B9;</li>
</ul>
<h4 id="&#x4F2A;&#x5143;&#x7D20;&#x9009;&#x62E9;&#x5668;"><a href="#&#x4F2A;&#x5143;&#x7D20;&#x9009;&#x62E9;&#x5668;" class="headerlink" title="&#x4F2A;&#x5143;&#x7D20;&#x9009;&#x62E9;&#x5668;"></a>&#x4F2A;&#x5143;&#x7D20;&#x9009;&#x62E9;&#x5668;</h4><ul>
<li><code>:not([name=&quot;special&quot;])</code> <ul>
<li><em>&#x4E0D;&#x5305;&#x542B;&#x8BE5;&#x5C5E;&#x6027;&#x7684;&#x9009;&#x4E2D;</em></li>
</ul>
</li>
<li><code>::before ::after</code> <ul>
<li><em>&#x4F2A;&#x5143;&#x7D20;&#x9009;&#x62E9;&#x5668; (&#x77E5;&#x8BC6;&#x91CD;&#x70B9;)</em></li>
</ul>
</li>
<li><code>::first-letter</code> <ul>
<li><em>&#x9996;&#x4E2A;&#x6587;&#x5B57;&#x7684;&#x9009;&#x7740;&#x5668;  &#x5FC5;&#x987B;&#x662F;&#x4E00;&#x4E2A;&#x5757;&#x7EA7;&#x5143;&#x7D20;</em></li>
</ul>
</li>
<li><code>::first-line</code><ul>
<li><em>&#x9996;&#x884C;</em> </li>
</ul>
</li>
<li><code>::selection</code> <ul>
<li><em>&#x6587;&#x672C;&#x9009;&#x62E9;&#x4E2D;&#x7684;&#x53D8;&#x6837;&#x5F0F;&#xFF1A;&#x80CC;&#x666F;&#x8272;&#xFF0C;&#x989C;&#x8272;&#x7B49;</em></li>
</ul>
</li>
</ul>
<hr>
<h2 id="&#x989C;&#x8272;"><a href="#&#x989C;&#x8272;" class="headerlink" title="&#x989C;&#x8272;"></a>&#x989C;&#x8272;</h2><h3 id="opacity"><a href="#opacity" class="headerlink" title="opacity"></a>opacity</h3><p>&#x53EA;&#x80FD;&#x9488;&#x5BF9;&#x6574;&#x4E2A;&#x76D2;&#x5B50;&#x8BBE;&#x7F6E;&#x900F;&#x660E;&#x5EA6;&#xFF0C;&#x5B50;&#x76D2;&#x5B50;&#x53CA;&#x5185;&#x5BB9;&#x4F1A;&#x7EE7;&#x627F;&#x7236;&#x76D2;&#x5B50;&#x7684;&#x900F;&#x660E;&#x5EA6;</p>
<h3 id="transparent"><a href="#transparent" class="headerlink" title="transparent"></a>transparent</h3><p>&#x53EA;&#x80FD;&#x9488;&#x5BF9;&#x6574;&#x4E2A;&#x76D2;&#x5B50;&#x8BBE;&#x7F6E;&#x900F;&#x660E;&#x5EA6;&#xFF0C;&#x5B50;&#x76D2;&#x5B50;&#x53CA;&#x5185;&#x5BB9;&#x4F1A;&#x7EE7;&#x627F;&#x7236;&#x76D2;&#x5B50;&#x7684;&#x900F;&#x660E;&#x5EA6;</p>
<h3 id="rgba-0-0-0-0-5"><a href="#rgba-0-0-0-0-5" class="headerlink" title="rgba(0,0,0,0.5);"></a>rgba(0,0,0,0.5);</h3><p>Red&#x3001;Green&#x3001;Blue&#x3001;Alpha</p>
<h3 id="hsla-240-100-40-0-6"><a href="#hsla-240-100-40-0-6" class="headerlink" title="hsla(240, 100%, 40%, 0.6);"></a>hsla(240, 100%, 40%, 0.6);</h3><p>&#x901A;&#x8FC7;hsla&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x5BF9;&#x989C;&#x8272;&#x7684;&#x900F;&#x660E;&#x5EA6;&#x8FDB;&#x884C;&#x63A7;&#x5236;, &#xFF08;&#x8272;&#x8C03;&#xFF0C;&#x9971;&#x548C;&#x5EA6;&#xFF0C;&#x4EAE;&#x5EA6;&#xFF0C;&#x900F;&#x660E;&#x5EA6;&#xFF09;</p>
<hr>
<h2 id="&#x6587;&#x672C;&#x9634;&#x5F71;-text-shadow"><a href="#&#x6587;&#x672C;&#x9634;&#x5F71;-text-shadow" class="headerlink" title="&#x6587;&#x672C;&#x9634;&#x5F71; text-shadow"></a>&#x6587;&#x672C;&#x9634;&#x5F71; text-shadow</h2><p><code>text-shadow:3px 3px 5px #000,-6px -6px 5px red;</code></p>
<ul>
<li>&#x7B2C;&#x4E00;&#x4E2A;&#x53C2;&#x6570;  x&#x8F74;&#x7684;&#x504F;&#x79FB;&#x91CF;</li>
<li>&#x7B2C;&#x4E8C;&#x4E2A;&#x53C2;&#x6570;  y&#x8F74;&#x7684;&#x504F;&#x79FB;&#x91CF;</li>
<li>&#x7B2C;&#x4E09;&#x4E2A;&#x53C2;&#x6570;  &#x9634;&#x5F71;&#x7684;&#x957F;&#x5EA6;</li>
<li>&#x7B2C;&#x56DB;&#x4E2A;&#x53C2;&#x6570;  &#x9634;&#x5F71;&#x7684;&#x989C;&#x8272;</li>
</ul>
<hr>
<h2 id="&#x76D2;&#x6A21;&#x578B;"><a href="#&#x76D2;&#x6A21;&#x578B;" class="headerlink" title="&#x76D2;&#x6A21;&#x578B;"></a>&#x76D2;&#x6A21;&#x578B;</h2><p><em>&#x767E;&#x5206;&#x6BD4;&#x5BBD;&#x5EA6;&#x7684;&#x65F6;&#x5019;&#x600E;&#x4E48;&#x9632;&#x6B62;&#x6EA2;&#x51FA;</em></p>
<p>CSS3&#x4E2D;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;box-sizing &#x6765;&#x6307;&#x5B9A;&#x76D2;&#x6A21;&#x578B;&#xFF0C;&#x5373;&#x53EF;&#x6307;&#x5B9A;&#x4E3A;content-box&#x3001;border-box&#xFF0C;&#x8FD9;&#x6837;&#x6211;&#x4EEC;&#x8BA1;&#x7B97;&#x76D2;&#x5B50;&#x5927;&#x5C0F;&#x7684;&#x65B9;&#x5F0F;&#x5C31;&#x53D1;&#x751F;&#x4E86;&#x6539;&#x53D8;&#x3002;</p>
<p>&#x53EF;&#x4EE5;&#x5206;&#x6210;&#x4E24;&#x79CD;&#x60C5;&#x51B5;&#xFF1A;</p>
<ol>
<li><code>box-sizing: border-box</code> <ul>
<li>&#x8BA1;&#x7B97;&#x65B9;&#x5F0F;&#x4E3A; <code>width = border + padding + content</code></li>
</ul>
</li>
<li><code>box-sizing: content-box</code>  <ul>
<li>&#x8BA1;&#x7B97;&#x65B9;&#x5F0F;&#x4E3A; <code>width = content</code></li>
</ul>
</li>
</ol>
<p>&#x517C;&#x5BB9;&#x6027;&#x6BD4;&#x8F83;&#x597D;</p>
<p><code>display:block;</code> &#x89E3;&#x51B3;&#x56FE;&#x7247;&#x4E0B;&#x95F4;&#x9699;</p>
<h2 id="&#x8FB9;&#x6846;"><a href="#&#x8FB9;&#x6846;" class="headerlink" title="&#x8FB9;&#x6846;"></a>&#x8FB9;&#x6846;</h2><h3 id="&#x8FB9;&#x6846;&#x5706;&#x89D2;-border-radius"><a href="#&#x8FB9;&#x6846;&#x5706;&#x89D2;-border-radius" class="headerlink" title="&#x8FB9;&#x6846;&#x5706;&#x89D2; border-radius"></a>&#x8FB9;&#x6846;&#x5706;&#x89D2; <code>border-radius</code></h3><ul>
<li><code>border-radius: 50px 10px 50px 10px;</code></li>
<li><code>border-radius: 100px 100px 100px 100px / 100px 100px 100px 100px;</code></li>
</ul>
<h3 id="&#x8FB9;&#x6846;&#x9634;&#x5F71;-box-shadow"><a href="#&#x8FB9;&#x6846;&#x9634;&#x5F71;-box-shadow" class="headerlink" title="&#x8FB9;&#x6846;&#x9634;&#x5F71; box-shadow"></a>&#x8FB9;&#x6846;&#x9634;&#x5F71; <code>box-shadow</code></h3><ul>
<li><code>box-shadow:  -3px -3px 2px red inset,3px 3px 2px #ccc;</code></li>
<li>&#x6C34;&#x5E73;&#x504F;&#x79FB;&#x91CF; &#x6B63;&#x503C;&#x5411;&#x53F3; &#x8D1F;&#x503C;&#x5411;&#x5DE6;&#xFF1B;</li>
<li>&#x5782;&#x76F4;&#x504F;&#x79FB;&#x91CF; &#x6B63;&#x503C;&#x5411;&#x4E0B; &#x8D1F;&#x503C;&#x5411;&#x4E0A;&#xFF1B;</li>
<li>&#x6A21;&#x7CCA;&#x5EA6;&#x662F;&#x4E0D;&#x80FD;&#x4E3A;&#x8D1F;&#x503C;&#xFF1B;(&#x5982;&#x679C;&#x6709;&#x4E94;&#x4E2A;&#x5C5E;&#x6027;  &#x7B2C;&#x56DB;&#x4E2A;&#x5C5E;&#x6027;&#x662F;&#x9634;&#x5F71;&#x7684;&#x5EF6;&#x4F38;)</li>
<li>inset&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x5185;&#x9634;&#x5F71;&#xFF1B;<ul>
<li>&#x8BBE;&#x7F6E;&#x8FB9;&#x6846;&#x9634;&#x5F71;&#x4E0D;&#x4F1A;&#x6539;&#x53D8;&#x76D2;&#x5B50;&#x7684;&#x5927;&#x5C0F;&#xFF0C;&#x5373;&#x4E0D;&#x4F1A;&#x5F71;&#x54CD;&#x5176;&#x5144;&#x5F1F;&#x5143;&#x7D20;&#x7684;&#x5E03;&#x5C40;&#x3002;</li>
<li>&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x591A;&#x91CD;&#x8FB9;&#x6846;&#x9634;&#x5F71;&#xFF0C;&#x5B9E;&#x73B0;&#x66F4;&#x597D;&#x7684;&#x6548;&#x679C;&#xFF0C;&#x589E;&#x5F3A;&#x7ACB;&#x4F53;&#x611F;</li>
</ul>
</li>
</ul>
<h3 id="&#x8FB9;&#x6846;&#x56FE;&#x7247;-border-image"><a href="#&#x8FB9;&#x6846;&#x56FE;&#x7247;-border-image" class="headerlink" title="&#x8FB9;&#x6846;&#x56FE;&#x7247; border-image"></a>&#x8FB9;&#x6846;&#x56FE;&#x7247; <code>border-image</code></h3><p>&#x5207;&#x5272;&#x7684;&#x5C3A;&#x5BF8;&#x662F;&#x4E0D;&#x5E26;&#x5355;&#x4F4D;  &#x9ED8;&#x8BA4;&#x7684;&#x5355;&#x4F4D;&#x662F; <code>px</code></p>
<ul>
<li><code>border-image: url(&quot;./images/border.png&quot;) 27/20px round;</code><ul>
<li><code>border-image-source: url(&quot;./images/border_image_2.png&quot;);</code><ul>
<li><em>&#x8FB9;&#x6846;&#x56FE;&#x7247;&#x8D44;&#x6E90;</em></li>
</ul>
</li>
<li><code>border-image-slice: 33;</code><ul>
<li><em>&#x8FB9;&#x6846;&#x56FE;&#x7247;&#x5207;&#x5272;&#x7684;&#x5C3A;&#x5BF8;</em></li>
</ul>
</li>
<li><code>border-image-width: 20px;</code><ul>
<li><em>&#x8FB9;&#x6846;&#x56FE;&#x7247;&#x5BBD;&#x5EA6;  &#x81EA;&#x9002;&#x5E94;&#x663E;&#x793A;&#x56FE;&#x7247;&#x5185;&#x5BB9;</em></li>
</ul>
</li>
<li><code>border-image-repeat: round;</code><ul>
<li><em>&#x8FB9;&#x6846;&#x56FE;&#x7247;&#x5E73;&#x94FA;&#x65B9;&#x5F0F;  round &#x73AF;&#x7ED5;&#x7684;&#x5F62;&#x5F0F;  repeat &#x5E73;&#x94FA; &#x4EE5;&#x4E2D;&#x5FC3;&#x4F4D;&#x7F6E;&#x5411;&#x4E24;&#x4FA7;&#x5E73;&#x94FA;  &#x9ED8;&#x8BA4;stretch &#x62C9;&#x4F38;</em></li>
</ul>
</li>
</ul>
</li>
</ul>
<hr>
<h2 id="&#x80CC;&#x666F;"><a href="#&#x80CC;&#x666F;" class="headerlink" title="&#x80CC;&#x666F;"></a>&#x80CC;&#x666F;</h2><h3 id="&#x80CC;&#x666F;-&#x5C3A;&#x5BF8;-background-size"><a href="#&#x80CC;&#x666F;-&#x5C3A;&#x5BF8;-background-size" class="headerlink" title="&#x80CC;&#x666F;-&#x5C3A;&#x5BF8; background-size"></a>&#x80CC;&#x666F;-&#x5C3A;&#x5BF8; <code>background-size</code></h3><ul>
<li><code>background-size: 600px 400px;</code><ul>
<li><em>&#x5BBD;&#x548C;&#x9AD8;</em> </li>
</ul>
</li>
<li><code>background-size: 100% auto;</code><ul>
<li><em>&#x662F;&#x57FA;&#x4E8E;&#x5BB9;&#x5668;&#x7684;&#x5BBD;&#x5EA6;&#x548C;&#x9AD8;&#x5EA6;&#x6765;&#x8BA1;&#x7B97;  &#x4E0D;&#x662F;&#x672C;&#x8EAB;</em></li>
</ul>
</li>
<li><code>background-size: auto 100%;</code> <ul>
<li><em>&#x7B49;&#x6BD4;&#x4F8B;&#x7F29;&#x653E;</em></li>
</ul>
</li>
<li><code>background-size: contain;</code><ul>
<li><em>&#x8BA9;&#x80CC;&#x666F;&#x56FE; &#x5B8C;&#x5168;&#x663E;&#x793A;&#x5728;&#x76D2;&#x5B50;&#x91CC;&#x5934;</em></li>
</ul>
</li>
<li><code>background-size: cover;</code> <ul>
<li><em>&#x8BA9;&#x80CC;&#x666F;&#x56FE; &#x5B8C;&#x5168;&#x94FA;&#x6EE1;&#x6574;&#x4E2A;&#x76D2;&#x5B50;</em></li>
</ul>
</li>
</ul>
<h3 id="&#x80CC;&#x666F;-&#x539F;&#x70B9;-background-origin"><a href="#&#x80CC;&#x666F;-&#x539F;&#x70B9;-background-origin" class="headerlink" title="&#x80CC;&#x666F;-&#x539F;&#x70B9; background-origin"></a>&#x80CC;&#x666F;-&#x539F;&#x70B9; <code>background-origin</code></h3><ul>
<li><code>background-origin: padding-box;</code> <ul>
<li><em>&#x80CC;&#x666F;&#x539F;&#x70B9;&#x4F4D;&#x7F6E; &#x9ED8;&#x8BA4;&#x662F;&#x4ECE;&#x5185;&#x8FB9;&#x8DDD;&#x5F00;&#x59CB;</em></li>
</ul>
</li>
<li><code>background-origin: content-box;</code> <ul>
<li><em>&#x80CC;&#x666F;&#x539F;&#x70B9;&#x4F4D;&#x7F6E; &#x9ED8;&#x8BA4;&#x662F;&#x4ECE;&#x5185;&#x5BB9;&#x5F00;&#x59CB;</em>  </li>
</ul>
</li>
<li><code>background-origin: border-box;</code><ul>
<li><em>&#x80CC;&#x666F;&#x539F;&#x70B9;&#x4F4D;&#x7F6E; &#x9ED8;&#x8BA4;&#x662F;&#x4ECE;&#x8FB9;&#x6846;&#x5F00;&#x59CB;</em></li>
</ul>
</li>
</ul>
<h3 id="&#x80CC;&#x666F;-&#x88C1;&#x526A;-background-clip"><a href="#&#x80CC;&#x666F;-&#x88C1;&#x526A;-background-clip" class="headerlink" title="&#x80CC;&#x666F;-&#x88C1;&#x526A; background-clip"></a>&#x80CC;&#x666F;-&#x88C1;&#x526A; <code>background-clip</code></h3><ul>
<li><code>background-clip:border-box;</code><ul>
<li><em>&#x80CC;&#x666F;&#x56FE;&#x7684;&#x88C1;&#x526A; &#x9ED8;&#x8BA4;&#x7684;&#x88C1;&#x526A;&#x7684;&#x4F4D;&#x7F6E;  border-box</em></li>
</ul>
</li>
<li><code>background-clip: padding-box;</code> <ul>
<li><em>&#x80CC;&#x666F;&#x56FE;&#x7684;&#x88C1;&#x526A; &#x9664;&#x4E86;&#x8FB9;&#x8DDD;&#x5185;&#x7684;&#x80CC;&#x666F; &#x88C1;&#x526A;&#x6389;&#x4E86;</em></li>
</ul>
</li>
<li><code>background-clip: content-box;</code> <ul>
<li><em>&#x80CC;&#x666F;&#x56FE;&#x7684;&#x88C1;&#x526A; &#x9664;&#x4E86;&#x5185;&#x5BB9;&#x5185;&#x7684;&#x80CC;&#x666F; &#x88C1;&#x526A;&#x6389;&#x4E86;</em></li>
</ul>
</li>
</ul>
<h3 id="&#x80CC;&#x666F;-&#x591A;&#x80CC;&#x666F;&#xFF08;&#x4EE5;&#x9017;&#x53F7;&#x5206;&#x9694;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x591A;&#x80CC;&#x666F;&#xFF0C;&#x53EF;&#x7528;&#x4E8E;&#x81EA;&#x9002;&#x5E94;&#x5C40;&#xFF09;"><a href="#&#x80CC;&#x666F;-&#x591A;&#x80CC;&#x666F;&#xFF08;&#x4EE5;&#x9017;&#x53F7;&#x5206;&#x9694;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x591A;&#x80CC;&#x666F;&#xFF0C;&#x53EF;&#x7528;&#x4E8E;&#x81EA;&#x9002;&#x5E94;&#x5C40;&#xFF09;" class="headerlink" title="&#x80CC;&#x666F;-&#x591A;&#x80CC;&#x666F;&#xFF08;&#x4EE5;&#x9017;&#x53F7;&#x5206;&#x9694;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x591A;&#x80CC;&#x666F;&#xFF0C;&#x53EF;&#x7528;&#x4E8E;&#x81EA;&#x9002;&#x5E94;&#x5C40;&#xFF09;"></a>&#x80CC;&#x666F;-&#x591A;&#x80CC;&#x666F;&#xFF08;&#x4EE5;&#x9017;&#x53F7;&#x5206;&#x9694;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x591A;&#x80CC;&#x666F;&#xFF0C;&#x53EF;&#x7528;&#x4E8E;&#x81EA;&#x9002;&#x5E94;&#x5C40;&#xFF09;</h3><figure class="highlight"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line">background:</div><div class="line">    url(&quot;images/bg1.png&quot;) left top no-repeat,</div><div class="line">    url(&quot;images/bg2.png&quot;) right top no-repeat,</div><div class="line">    url(&quot;images/bg3.png&quot;) right bottom no-repeat,</div><div class="line">    url(&quot;images/bg4.png&quot;) left bottom no-repeat,</div><div class="line">    url(&quot;images/bg5.png&quot;) repeat&#xFF1B;</div></pre></td></tr></table></figure>
<hr>
<h2 id="&#x6E10;&#x53D8;"><a href="#&#x6E10;&#x53D8;" class="headerlink" title="&#x6E10;&#x53D8;"></a>&#x6E10;&#x53D8;</h2><h3 id="&#x7EBF;&#x6027;&#x6E10;&#x53D8;&#xFF08;&#x6307;&#x6CBF;&#x7740;&#x67D0;&#x6761;&#x76F4;&#x7EBF;&#x671D;&#x4E00;&#x4E2A;&#x65B9;&#x5411;&#x4EA7;&#x751F;&#x6E10;&#x53D8;&#x6548;&#x679C;&#xFF09;"><a href="#&#x7EBF;&#x6027;&#x6E10;&#x53D8;&#xFF08;&#x6307;&#x6CBF;&#x7740;&#x67D0;&#x6761;&#x76F4;&#x7EBF;&#x671D;&#x4E00;&#x4E2A;&#x65B9;&#x5411;&#x4EA7;&#x751F;&#x6E10;&#x53D8;&#x6548;&#x679C;&#xFF09;" class="headerlink" title="&#x7EBF;&#x6027;&#x6E10;&#x53D8;&#xFF08;&#x6307;&#x6CBF;&#x7740;&#x67D0;&#x6761;&#x76F4;&#x7EBF;&#x671D;&#x4E00;&#x4E2A;&#x65B9;&#x5411;&#x4EA7;&#x751F;&#x6E10;&#x53D8;&#x6548;&#x679C;&#xFF09;"></a>&#x7EBF;&#x6027;&#x6E10;&#x53D8;&#xFF08;&#x6307;&#x6CBF;&#x7740;&#x67D0;&#x6761;&#x76F4;&#x7EBF;&#x671D;&#x4E00;&#x4E2A;&#x65B9;&#x5411;&#x4EA7;&#x751F;&#x6E10;&#x53D8;&#x6548;&#x679C;&#xFF09;</h3><ul>
<li><code>background-image: linear-gradient(to right,yellow,blue);</code></li>
<li><code>background-image: linear-gradient(90deg,transparent,black);</code><ul>
<li><em>0deg &#x4ECE;&#x4E0B;&#x5F80;&#x4E0A; &#x987A;&#x65F6;&#x9488;&#x662F;&#x6B63;&#x7684;</em></li>
<li><em>0% - 50% &#x5BBD;&#x5EA6;&#x5185;&#x7684;&#x6E10;&#x53D8; &#x767E;&#x5206;&#x6BD4;&#x8BBE;&#x7F6E;&#x591A;&#x4E2A;&#x6E10;&#x53D8;&#x7684;&#x533A;&#x95F4;</em></li>
</ul>
</li>
</ul>
<figure class="highlight css"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div></pre></td><td class="code"><pre><div class="line"><span class="selector-tag">background-image</span>: <span class="selector-tag">linear-gradient</span>(45<span class="selector-tag">deg</span>,</div><div class="line">  <span class="selector-tag">yellow</span> 0% ,</div><div class="line">  <span class="selector-tag">yellow</span> 25%,</div><div class="line">  <span class="selector-tag">blue</span> 25%,</div><div class="line">  <span class="selector-tag">blue</span> 50%,</div><div class="line">  <span class="selector-tag">yellow</span> 50%,</div><div class="line">  <span class="selector-tag">yellow</span> 75%,</div><div class="line">  <span class="selector-tag">blue</span> 75% ,</div><div class="line">  <span class="selector-tag">blue</span> 100%</div><div class="line">);</div></pre></td></tr></table></figure>
<h3 id="&#x5F84;&#x5411;&#x6E10;&#x53D8;&#xFF08;&#x4ECE;&#x4E00;&#x4E2A;&#x4E2D;&#x5FC3;&#x70B9;&#x5F00;&#x59CB;&#x6CBF;&#x7740;&#x56DB;&#x5468;&#x4EA7;&#x751F;&#x6E10;&#x53D8;&#x6548;&#x679C;&#xFF09;"><a href="#&#x5F84;&#x5411;&#x6E10;&#x53D8;&#xFF08;&#x4ECE;&#x4E00;&#x4E2A;&#x4E2D;&#x5FC3;&#x70B9;&#x5F00;&#x59CB;&#x6CBF;&#x7740;&#x56DB;&#x5468;&#x4EA7;&#x751F;&#x6E10;&#x53D8;&#x6548;&#x679C;&#xFF09;" class="headerlink" title="&#x5F84;&#x5411;&#x6E10;&#x53D8;&#xFF08;&#x4ECE;&#x4E00;&#x4E2A;&#x4E2D;&#x5FC3;&#x70B9;&#x5F00;&#x59CB;&#x6CBF;&#x7740;&#x56DB;&#x5468;&#x4EA7;&#x751F;&#x6E10;&#x53D8;&#x6548;&#x679C;&#xFF09;"></a>&#x5F84;&#x5411;&#x6E10;&#x53D8;&#xFF08;&#x4ECE;&#x4E00;&#x4E2A;&#x4E2D;&#x5FC3;&#x70B9;&#x5F00;&#x59CB;&#x6CBF;&#x7740;&#x56DB;&#x5468;&#x4EA7;&#x751F;&#x6E10;&#x53D8;&#x6548;&#x679C;&#xFF09;</h3><p><em>1.&#x653E;&#x5C04;&#x534A;&#x5F84;;2.&#x4E2D;&#x5FC3;&#x5706;&#x70B9;;3.&#x8D77;&#x59CB;&#x989C;&#x8272;;4.&#x7ED3;&#x675F;&#x989C;&#x8272;</em></p>
<ul>
<li><code>radial-gradient(150px at 80px 80px,yellow,blue);</code></li>
</ul>
<hr>
<h2 id="&#x8FC7;&#x6E21;-transition"><a href="#&#x8FC7;&#x6E21;-transition" class="headerlink" title="&#x8FC7;&#x6E21; transition"></a>&#x8FC7;&#x6E21; <code>transition</code></h2><p><code>transition: all 1s linear 1s;</code></p>
<ul>
<li>transition-property: all; <ul>
<li><em>&#x9700;&#x8981;&#x4EA7;&#x751F;&#x8FC7;&#x6E21;&#x7684;&#x5C5E;&#x6027;  all&#x6240;&#x6709;&#x7684;</em>  </li>
</ul>
</li>
<li>transition-duration: 1s; <ul>
<li><em>&#x5B8C;&#x6210;&#x4E00;&#x4E2A;&#x72B6;&#x6001;&#x5230;&#x53E6;&#x4E00;&#x4E2A;&#x72B6;&#x6001;&#x7684;&#x8FC7;&#x6E21;&#x65F6;&#x95F4;</em></li>
</ul>
</li>
<li>transition-timing-function: linear; <ul>
<li><em>&#x8FC7;&#x6E21;&#x7684;  &#x901F;&#x5EA6;  &#x5300;&#x901F;  &#x5148;&#x5FEB;&#x540E;&#x6162;  &#x5148;&#x6162;&#x540E;&#x5FEB;</em></li>
</ul>
</li>
<li>transition-delay: 1s; <ul>
<li><em>&#x8FC7;&#x6E21;&#x5EF6;&#x65F6;&#x5EF6;&#x65F6;</em></li>
</ul>
</li>
<li>backface-visibility<ul>
<li><em>&#x8BBE;&#x7F6E;&#x5143;&#x7D20;&#x80CC;&#x666F;&#x662F;&#x5426;&#x53EF;&#x89C1;</em></li>
</ul>
</li>
</ul>
<hr>
<h2 id="2D&#x8F6C;&#x6362;"><a href="#2D&#x8F6C;&#x6362;" class="headerlink" title="2D&#x8F6C;&#x6362;"></a>2D&#x8F6C;&#x6362;</h2><h3 id="&#x7F29;&#x653E;"><a href="#&#x7F29;&#x653E;" class="headerlink" title="&#x7F29;&#x653E;"></a>&#x7F29;&#x653E;</h3><ul>
<li><code>transform: scale(2, 2);</code> <ul>
<li><em>x&#x8F74;&#x65B9;&#x5411;&#x7684;&#x7F29;&#x653E;&#x6BD4;,y&#x8F74;&#x65B9;&#x5411;&#x7684;&#x7F29;&#x653E;&#x6BD4;</em></li>
</ul>
</li>
</ul>
<h3 id="&#x79FB;&#x52A8;"><a href="#&#x79FB;&#x52A8;" class="headerlink" title="&#x79FB;&#x52A8;"></a>&#x79FB;&#x52A8;</h3><ul>
<li><code>transform: translate(10%,0px);</code> <ul>
<li><em>x&#x8F74;&#x65B9;&#x5411;&#x7684;&#x79FB;&#x52A8;,y&#x8F74;&#x65B9;&#x5411;&#x7684;&#x79FB;&#x52A8;,&#x767E;&#x5206;&#x6BD4; &#x57FA;&#x4E8E;&#x4ED6;&#x672C;&#x8EAB;&#x7684;</em></li>
</ul>
</li>
</ul>
<h3 id="&#x65CB;&#x8F6C;"><a href="#&#x65CB;&#x8F6C;" class="headerlink" title="&#x65CB;&#x8F6C;"></a>&#x65CB;&#x8F6C;</h3><ul>
<li><code>transform: rotate(-90deg);</code><ul>
<li><em>&#x5982;&#x679C;&#x662F;&#x6B63;&#x503C;,&#x662F;&#x987A;&#x65F6;&#x9488;&#x65CB;&#x8F6C;;&#x5982;&#x679C;&#x662F;&#x8D1F;&#x503C; ,&#x662F;&#x9006;&#x65F6;&#x9488;&#x65CB;&#x8F6C;</em></li>
</ul>
</li>
</ul>
<h3 id="&#x65CB;&#x8F6C;&#x539F;&#x70B9;"><a href="#&#x65CB;&#x8F6C;&#x539F;&#x70B9;" class="headerlink" title="&#x65CB;&#x8F6C;&#x539F;&#x70B9;"></a>&#x65CB;&#x8F6C;&#x539F;&#x70B9;</h3><ul>
<li><code>transform-origin: left center;</code></li>
</ul>
<h3 id="&#x503E;&#x659C;"><a href="#&#x503E;&#x659C;" class="headerlink" title="&#x503E;&#x659C;"></a>&#x503E;&#x659C;</h3><ul>
<li><code>transform: skew(45deg,0deg);</code> <ul>
<li><em>x&#x8F74; &#x6B63;&#x503C;&#x662F;&#x9006;&#x65F6;&#x9488; y&#x8F74;&#x6B63;&#x503C;&#x662F;&#x987A;&#x65F6;&#x9488;</em></li>
</ul>
</li>
</ul>
<hr>
<h2 id="3D&#x8F6C;&#x6362;"><a href="#3D&#x8F6C;&#x6362;" class="headerlink" title="3D&#x8F6C;&#x6362;"></a>3D&#x8F6C;&#x6362;</h2><ul>
<li><code>rotateX(180deg);</code><ul>
<li><em>&#x5982;&#x679C;&#x662F;&#x8D1F;&#x7684; &#x5C31;&#x662F;&#x987A;&#x65F6;&#x9488; &#x6B63;&#x7684;&#x662F;&#x9006;&#x65F6;&#x9488;</em></li>
</ul>
</li>
<li><code>perspective: 100px;</code><ul>
<li><em>&#x900F;&#x89C6;</em></li>
</ul>
</li>
<li><code>transform-style: preserve-3d;</code><ul>
<li><em>&#x900F;&#x89C6;</em></li>
</ul>
</li>
</ul>
<h2 id="CSS3-&#x52A8;&#x753B;"><a href="#CSS3-&#x52A8;&#x753B;" class="headerlink" title="CSS3 &#x52A8;&#x753B;"></a>CSS3 &#x52A8;&#x753B;</h2><ul>
<li>&#x58F0;&#x660E;   @keyframes &#x5173;&#x952E;&#x5B57; &#x52A8;&#x753B;&#x5E8F;&#x5217;&#x7684;&#x540D;&#x79F0; &#xFF5B;&#xFF5D;</li>
<li>keyframes move{&#x8282;&#x70B9;}</li>
<li>from 0%  to 100%  &#x8FD8;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x767E;&#x5206;&#x6BD4;&#x6765;&#x8BBE;&#x7F6E;&#x8282;&#x70B9;</li>
<li><code>animation-name: move;</code><ul>
<li><em>&#x52A8;&#x753B;&#x5E8F;&#x5217;&#x7684;&#x540D;&#x79F0;</em></li>
</ul>
</li>
<li><code>animation-duration: 2s;</code><ul>
<li><em>&#x52A8;&#x753B;&#x6267;&#x884C;&#x7684;&#x603B;&#x65F6;&#x95F4;</em></li>
</ul>
</li>
<li><code>animation-timing-function: ease;</code><ul>
<li><em>&#x52A8;&#x753B;&#x6267;&#x884C;&#x7684;&#x901F;&#x5EA6; ease linear ease-in ease-in-out ease-out</em></li>
</ul>
</li>
<li><code>animation-delay: 1s;</code><ul>
<li><em>&#x52A8;&#x753B;&#x5EF6;&#x65F6;</em></li>
</ul>
</li>
<li><code>animation-fill-mode: forwards;</code><ul>
<li><em>&#x52A8;&#x753B;&#x7ED3;&#x675F;&#x7684;&#x65F6;&#x5019;&#x7684;&#x72B6;&#x6001; forwards &#x4FDD;&#x6301;&#x7ED3;&#x675F;&#x72B6;&#x6001;  backwards &#x56DE;&#x7B54;&#x6700;&#x539F;&#x751F;&#x7684;&#x72B6;&#x6001; &#x6CA1;&#x6709;&#x52A8;&#x753B;&#x7684;&#x90A3;&#x4E2A;&#x72B6;&#x6001;</em></li>
</ul>
</li>
<li><code>animation-iteration-count: infinite;</code><ul>
<li><em>&#x52A8;&#x753B;&#x6267;&#x884C;&#x7684;&#x6B21;&#x6570; &#x6B21;&#x6570; &#x7279;&#x6B8A;&#x7684;&#x503C; infinite &#x6267;&#x884C;&#x65E0;&#x6570;&#x6B21;</em></li>
</ul>
</li>
<li><code>animation-direction:alternate;</code><ul>
<li><em>&#x52A8;&#x753B;&#x9006;&#x64AD;&#x653E;</em></li>
</ul>
</li>
<li><code>animation-play-state:paused;</code><ul>
<li><em>&#x6267;&#x884C;&#x7684;&#x72B6;&#x6001; &#x662F;&#x6267;&#x884C;&#x4E2D;  &#x6682;&#x505C;  running&#x3001;paused</em></li>
<li><em>&#x5206;&#x6B65;&#x6267;&#x884C; steps(3)</em></li>
</ul>
</li>
</ul>
<hr>
<h2 id="&#x591A;&#x5217;&#x5E03;&#x5C40;"><a href="#&#x591A;&#x5217;&#x5E03;&#x5C40;" class="headerlink" title="&#x591A;&#x5217;&#x5E03;&#x5C40;"></a>&#x591A;&#x5217;&#x5E03;&#x5C40;</h2><blockquote>
<p>box-sizing: border-box; </p>
</blockquote>
<ul>
<li><code>-webkit-column-count: 4;</code><ul>
<li><em>&#x6307;&#x5B9A;&#x5217;&#x6570;</em></li>
</ul>
</li>
<li><code>-webkit-column-width: 400px;</code><ul>
<li><em>&#x6307;&#x5B9A;&#x5217;&#x5BBD;</em></li>
</ul>
</li>
<li><code>-webkit-column-rule: 2px dashed #CCC;</code><ul>
<li><em>&#x5B9A;&#x4E49;&#x8FB9;&#x6846;&#x7EBF; &#x548C; border&#x4E00;&#x6837;</em></li>
</ul>
</li>
<li><code>-webkit-column-gap: 50px;</code><ul>
<li><em>&#x8C03;&#x6574;&#x5217;&#x95F4;&#x8DDD;</em></li>
</ul>
</li>
</ul>
<hr>
<h2 id="&#x4F38;&#x7F29;&#x5E03;&#x5C40;"><a href="#&#x4F38;&#x7F29;&#x5E03;&#x5C40;" class="headerlink" title="&#x4F38;&#x7F29;&#x5E03;&#x5C40;"></a>&#x4F38;&#x7F29;&#x5E03;&#x5C40;</h2><blockquote>
<p>display: flex; flex-direction: column;</p>
</blockquote>
<h3 id="flex-direction&#xFF1A;"><a href="#flex-direction&#xFF1A;" class="headerlink" title="flex-direction&#xFF1A;"></a><code>flex-direction&#xFF1A;</code></h3><ul>
<li><code>row</code></li>
<li><code>column</code></li>
<li><code>row-reverse</code></li>
<li><code>column-reverse</code></li>
<li>&#x8C03;&#x6574;&#x4E3B;&#x8F74;&#x65B9;&#x5411;&#xFF08;&#x9ED8;&#x8BA4;&#x6C34;&#x5E73;&#xFF09;</li>
</ul>
<h3 id="justify-content&#xFF1A;"><a href="#justify-content&#xFF1A;" class="headerlink" title="justify-content&#xFF1A;"></a><code>justify-content&#xFF1A;</code></h3><ul>
<li><code>flex-start</code>&#xFF08;&#x8D77;&#x59CB;&#x70B9;&#x5BF9;&#x9F50;&#xFF09;</li>
<li><code>flex-end</code>&#xFF08;&#x7EC8;&#x6B62;&#x70B9;&#x5BF9;&#x9F50;&#xFF09;</li>
<li><code>center</code>&#xFF08;&#x5C45;&#x4E2D;&#x5BF9;&#x9F50;&#xFF09;</li>
<li><code>space-around</code>&#xFF08;&#x56DB;&#x5468;&#x73AF;&#x7ED5;&#xFF09;</li>
<li><code>space-between</code>&#xFF08;&#x4E24;&#x7AEF;&#x5BF9;&#x9F50;&#xFF09;</li>
<li>(&#x8C03;&#x6574;&#x4E3B;&#x8F74;&#x5BF9;&#x9F50;)</li>
</ul>
<h3 id="align-items&#xFF1A;-&#x8C03;&#x6574;&#x6D4B;&#x8F74;&#x5BF9;&#x9F50;"><a href="#align-items&#xFF1A;-&#x8C03;&#x6574;&#x6D4B;&#x8F74;&#x5BF9;&#x9F50;" class="headerlink" title="align-items&#xFF1A;(&#x8C03;&#x6574;&#x6D4B;&#x8F74;&#x5BF9;&#x9F50;)"></a><code>align-items&#xFF1A;(&#x8C03;&#x6574;&#x6D4B;&#x8F74;&#x5BF9;&#x9F50;)</code></h3><ul>
<li><code>flex-start</code>&#xFF08;&#x4FA7;&#x8F74;&#x8D77;&#x59CB;&#x70B9;&#x5BF9;&#x9F50;&#xFF09;</li>
<li><code>flex-end</code>&#xFF08;&#x4FA7;&#x8F74;&#x7EC8;&#x6B62;&#x70B9;&#x5BF9;&#x9F50;&#xFF09;</li>
<li><code>center</code>&#xFF08;&#x4FA7;&#x8F74;&#x5C45;&#x4E2D;&#x5BF9;&#x9F50;&#xFF09;</li>
<li><code>stretch</code>&#xFF08;&#x62C9;&#x4F38;&#xFF09;</li>
</ul>
<h3 id="flex-wrap&#xFF1A;-&#x63A7;&#x5236;&#x662F;&#x5426;&#x6362;&#x884C;"><a href="#flex-wrap&#xFF1A;-&#x63A7;&#x5236;&#x662F;&#x5426;&#x6362;&#x884C;" class="headerlink" title="flex-wrap&#xFF1A;(&#x63A7;&#x5236;&#x662F;&#x5426;&#x6362;&#x884C;)"></a><code>flex-wrap&#xFF1A;(&#x63A7;&#x5236;&#x662F;&#x5426;&#x6362;&#x884C;)</code></h3><ul>
<li><code>wrap</code>&#xFF08;&#x81EA;&#x52A8;&#x6362;&#x884C;&#xFF09;</li>
<li><code>nowrap</code>&#xFF08;&#x4E0D;&#x81EA;&#x52A8;&#x6362;&#x884C;&#xFF09;</li>
</ul>
<h3 id="align-content&#xFF1A;-&#x5806;&#x6808;&#xFF08;&#x7531;flex-wrap&#x4EA7;&#x751F;&#x7684;&#x72EC;&#x7ACB;&#x884C;&#xFF09;&#x5BF9;&#x9F50;"><a href="#align-content&#xFF1A;-&#x5806;&#x6808;&#xFF08;&#x7531;flex-wrap&#x4EA7;&#x751F;&#x7684;&#x72EC;&#x7ACB;&#x884C;&#xFF09;&#x5BF9;&#x9F50;" class="headerlink" title="align-content&#xFF1A;(&#x5806;&#x6808;&#xFF08;&#x7531;flex-wrap&#x4EA7;&#x751F;&#x7684;&#x72EC;&#x7ACB;&#x884C;&#xFF09;&#x5BF9;&#x9F50;)"></a><code>align-content&#xFF1A;(&#x5806;&#x6808;&#xFF08;&#x7531;flex-wrap&#x4EA7;&#x751F;&#x7684;&#x72EC;&#x7ACB;&#x884C;&#xFF09;&#x5BF9;&#x9F50;)</code></h3><ul>
<li><code>flex-start</code>&#xFF08;&#x8D77;&#x59CB;&#x70B9;&#x5BF9;&#x9F50;&#xFF09;</li>
<li><code>flex-end</code>&#xFF08;&#x7EC8;&#x6B62;&#x70B9;&#x5BF9;&#x9F50;&#xFF09;</li>
<li><code>center</code>&#xFF08;&#x5C45;&#x4E2D;&#x5BF9;&#x9F50;&#xFF09;</li>
<li><code>space-around</code>&#xFF08;&#x56DB;&#x5468;&#x73AF;&#x7ED5;&#xFF09;</li>
<li><code>space-between</code>&#xFF08;&#x4E24;&#x7AEF;&#x5BF9;&#x9F50;&#xFF09;</li>
<li><code>stretch</code>&#xFF08;&#x62C9;&#x4F38;&#xFF09;</li>
</ul>
<h3 id="flex-flow&#xFF1A;"><a href="#flex-flow&#xFF1A;" class="headerlink" title="flex-flow&#xFF1A;"></a><code>flex-flow&#xFF1A;</code></h3><ul>
<li><code>flex-flow</code> &#x662F; <code>flex-direction</code> &#x548C; <code>flex-wrap</code> &#x7684;&#x7B80;&#x5199;&#x5F62;&#x5F0F;</li>
</ul>
<h3 id="flex-&#x63A7;&#x5236;&#x5B50;&#x5143;&#x7D20;&#x4F38;&#x7F29;&#x6BD4;&#x4F8B;"><a href="#flex-&#x63A7;&#x5236;&#x5B50;&#x5143;&#x7D20;&#x4F38;&#x7F29;&#x6BD4;&#x4F8B;" class="headerlink" title="flex &#x63A7;&#x5236;&#x5B50;&#x5143;&#x7D20;&#x4F38;&#x7F29;&#x6BD4;&#x4F8B;"></a><code>flex</code> &#x63A7;&#x5236;&#x5B50;&#x5143;&#x7D20;&#x4F38;&#x7F29;&#x6BD4;&#x4F8B;</h3><h3 id="align-self"><a href="#align-self" class="headerlink" title="align-self"></a><code>align-self</code></h3><p>&#x540C; <code>align-items</code> &#x53EF;&#x8986;&#x76D6;&#x7236;&#x5143;&#x7D20;&#x8BBE;&#x7F6E;&#x7684; <code>algin-items</code>&#xFF0C;&#x5305;&#x62EC; <code>flex-start</code>&#x3001;<code>flex-end</code>&#x3001;<code>center</code>&#x3001;<code>stretch</code></p>
<h3 id="order-&#x63A7;&#x5236;&#x5B50;&#x5143;&#x7D20;&#x7684;&#x987A;&#x5E8F;"><a href="#order-&#x63A7;&#x5236;&#x5B50;&#x5143;&#x7D20;&#x7684;&#x987A;&#x5E8F;" class="headerlink" title="order &#x63A7;&#x5236;&#x5B50;&#x5143;&#x7D20;&#x7684;&#x987A;&#x5E8F;"></a><code>order</code> &#x63A7;&#x5236;&#x5B50;&#x5143;&#x7D20;&#x7684;&#x987A;&#x5E8F;</h3><hr>
<h2 id="web&#x5B57;&#x4F53;-28"><a href="#web&#x5B57;&#x4F53;-28" class="headerlink" title="web&#x5B57;&#x4F53;(28)"></a>web&#x5B57;&#x4F53;(28)</h2><p><em>1.&#x7533;&#x660E; &#x81EA;&#x5B9A;&#x4E49;&#x7684;&#x5B57;&#x4F53;</em></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div></pre></td><td class="code"><pre><div class="line">@font-face {</div><div class="line">  /*&#x5B57;&#x4F53;&#x7684;&#x540D;&#x79F0; &#x81EA;&#x5B9A;&#x4E49;*/</div><div class="line">  font-family: &apos;itcast-font&apos;;</div><div class="line">  /*&#x5F15;&#x5165;&#x5B57;&#x4F53;&#x6587;&#x4EF6;  &#x683C;&#x5F0F;&#x90FD;&#x5E02;&#x56FA;&#x5B9A;&#x7684;  */</div><div class="line">  src:</div><div class="line">    url(&quot;../fonts/LiDeBiao-Xing3/LiDeBiao-Xing3.svg&quot;) format(&quot;svg&quot;),</div><div class="line">    url(&quot;../fonts/LiDeBiao-Xing3/LiDeBiao-Xing3.ttf&quot;) format(&quot;truetype&quot;),</div><div class="line">    url(&quot;../fonts/LiDeBiao-Xing3/LiDeBiao-Xing3.woff&quot;) format(&quot;woff&quot;),</div><div class="line">    url(&quot;../fonts/LiDeBiao-Xing3/LiDeBiao-Xing3.eot&quot;) format(&quot;embedded-opentype&quot;);</div><div class="line">}</div></pre></td></tr></table></figure>
<p><em>&#x5B57;&#x4F53;&#x56FE;&#x6807;</em></p>
<p><code>&lt;link rel=&quot;stylesheet&quot; href=&quot;../fonts/font-awesome-4.4.0/css/font-awesome.css&quot;/&gt;</code></p>
<p><em>&#x5B9A;&#x5236;&#x81EA;&#x5DF2;&#x7684;&#x5B57;&#x4F53;&#x56FE;&#x6807;&#x5E93;</em></p>
<ul>
<li><a href="http://iconfont.cn/" target="_blank" rel="external">http://iconfont.cn/</a></li>
<li><a href="https://icomoon.io/" target="_blank" rel="external">https://icomoon.io/</a></li>
</ul>
<hr>
<h2 id="&#x5207;&#x5272;&#x8F6E;&#x64AD;&#x56FE;-28"><a href="#&#x5207;&#x5272;&#x8F6E;&#x64AD;&#x56FE;-28" class="headerlink" title="&#x5207;&#x5272;&#x8F6E;&#x64AD;&#x56FE;(28)"></a>&#x5207;&#x5272;&#x8F6E;&#x64AD;&#x56FE;(28)</h2><figure class="highlight js"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div></pre></td><td class="code"><pre><div class="line">$(<span class="string">&apos;body&apos;</span>)</div><div class="line">.on(<span class="string">&apos;click&apos;</span>,<span class="string">&apos;.prev&apos;</span>,<span class="function"><span class="keyword">function</span>(<span class="params"></span>)</span>{</div><div class="line">    <span class="comment">/*&#x4E0A;&#x4E00;&#x5F20;*/</span></div><div class="line">    index ++;</div><div class="line">    $(<span class="string">&apos;.view li&apos;</span>).css({<span class="string">&apos;transition&apos;</span>:<span class="string">&apos;all 1s&apos;</span>,<span class="string">&apos;transform&apos;</span>:<span class="string">&apos;rotateX(&apos;</span>+index*<span class="number">90</span>+<span class="string">&apos;deg)&apos;</span>}).each(<span class="function"><span class="keyword">function</span>(<span class="params">i,t</span>)</span>{</div><div class="line">        $(<span class="keyword">this</span>).css(<span class="string">&apos;transition-delay&apos;</span>,i*<span class="number">0.25</span>+<span class="string">&apos;s&apos;</span>);</div><div class="line">    });</div><div class="line">})</div><div class="line">.on(<span class="string">&apos;click&apos;</span>,<span class="string">&apos;.next&apos;</span>,<span class="function"><span class="keyword">function</span>(<span class="params"></span>)</span>{</div><div class="line">    <span class="comment">/*&#x4E0B;&#x4E00;&#x5F20;*/</span></div><div class="line">    index --;</div><div class="line">    $(<span class="string">&apos;.view li&apos;</span>).css({<span class="string">&apos;transition&apos;</span>:<span class="string">&apos;all 1s&apos;</span>,<span class="string">&apos;transform&apos;</span>:<span class="string">&apos;rotateX(&apos;</span>+index*<span class="number">90</span>+<span class="string">&apos;deg)&apos;</span>}).each(<span class="function"><span class="keyword">function</span>(<span class="params">i,t</span>)</span>{</div><div class="line">        $(<span class="keyword">this</span>).css(<span class="string">&apos;transition-delay&apos;</span>,i*<span class="number">0.25</span>+<span class="string">&apos;s&apos;</span>);</div><div class="line">    });</div><div class="line">});</div></pre></td></tr></table></figure>
<hr>
<h2 id="&#x517C;&#x5BB9;&#x6027;"><a href="#&#x517C;&#x5BB9;&#x6027;" class="headerlink" title="&#x517C;&#x5BB9;&#x6027;"></a>&#x517C;&#x5BB9;&#x6027;</h2><ul>
<li><a href="http://caniuse.com/" target="_blank" rel="external">http://caniuse.com/</a> <ul>
<li>&#x53EF;&#x67E5;&#x8BE2;CSS3&#x5404;&#x7279;&#x6027;&#x7684;&#x652F;&#x6301;&#x7A0B;&#x5EA6;&#xFF0C;&#x4E00;&#x822C;&#x517C;&#x5BB9;&#x6027;&#x5904;&#x7406;&#x7684;&#x5E38;&#x89C1;&#x65B9;&#x6CD5;&#x662F;&#x4E3A;&#x5C5E;&#x6027;&#x6DFB;&#x52A0;&#x79C1;&#x6709;&#x524D;&#x7F00;</li>
</ul>
</li>
</ul>

      
    </div>

    <div>
      
        

      
    </div>

    <div>
      
        
  <div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;">
    <div>感谢您的支持！</div>
    <button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
      <span>打 赏</span>
    </button>
    <div id="QR" style="display: none;">
      
        <div id="wechat" style="display: inline-block">
          <img id="wechat_qr" src="http://ofy7k3v4s.bkt.clouddn.com/wcpayCode.jpg" alt="Hongqin Ma WeChat Pay"/>
          <p>微信打赏</p>
        </div>
      
      
        <div id="alipay" style="display: inline-block">
          <img id="alipay_qr" src="http://ofy7k3v4s.bkt.clouddn.com/apayCode.jpg" alt="Hongqin Ma Alipay"/>
          <p>支付宝打赏</p>
        </div>
      
    </div>
  </div>


      
    </div>

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/CSS3/" rel="tag">#CSS3</a>
          
        </div>
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2015/01/20/Built-Hexo-Blog/" rel="next" title="Hexo博客搭建">
                <i class="fa fa-chevron-left"></i> Hexo博客搭建
              </a>
            
          </div>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2015/02/19/HTML5知识体系/" rel="prev" title="HTML5知识体系">
                HTML5知识体系 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </article>



    <div class="post-spread">
      
        <div class="ds-share flat" data-thread-key="2015/01/22/CSS3知识体系/"
     data-title="CSS3知识体系"
     data-content=""
     data-url="https://hongqinma.github.io/2015/01/22/CSS3知识体系/">
  <div class="ds-share-inline">
    <ul  class="ds-share-icons-16">

      <li data-toggle="ds-share-icons-more"><a class="ds-more" href="javascript:void(0);">分享到：</a></li>
      <li><a class="ds-weibo" href="javascript:void(0);" data-service="weibo">微博</a></li>
      <li><a class="ds-qzone" href="javascript:void(0);" data-service="qzone">QQ空间</a></li>
      <li><a class="ds-qqt" href="javascript:void(0);" data-service="qqt">腾讯微博</a></li>
      <li><a class="ds-wechat" href="javascript:void(0);" data-service="wechat">微信</a></li>

    </ul>
    <div class="ds-share-icons-more">
    </div>
  </div>
</div>
      
    </div>
  </div>


          </div>
          


          
  <div class="comments" id="comments">
    
      <div class="ds-thread" data-thread-key="2015/01/22/CSS3知识体系/"
           data-title="CSS3知识体系" data-url="https://hongqinma.github.io/2015/01/22/CSS3知识体系/">
      </div>
    
  </div>


        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
            Table of Contents
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview">
            Overview
          </li>
        </ul>
      

      <section class="site-overview sidebar-panel ">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="//schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="/images/photo.jpg"
               alt="Hongqin Ma" />
          <p class="site-author-name" itemprop="name">Hongqin Ma</p>
          <p class="site-description motion-element" itemprop="description">Spell at all costs， to rush you in the future. </p>
        </div>
        <nav class="site-state motion-element">
          <div class="site-state-item site-state-posts">
            <a href="/archives">
              <span class="site-state-item-count">68</span>
              <span class="site-state-item-name">posts</span>
            </a>
          </div>

          
            <div class="site-state-item site-state-categories">
              <a href="/categories">
                <span class="site-state-item-count">16</span>
                <span class="site-state-item-name">categories</span>
              </a>
            </div>
          

          
            <div class="site-state-item site-state-tags">
              <a href="/tags">
                <span class="site-state-item-count">57</span>
                <span class="site-state-item-name">tags</span>
              </a>
            </div>
          

        </nav>

        

        <div class="links-of-author motion-element">
          
            
              <span class="links-of-author-item">
                <a href="https://github.com/HongqinMa" target="_blank" title="GitHub">
                  
                    <i class="fa fa-fw fa-github"></i>
                  
                  GitHub
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="https://twitter.com/HongqinMa" target="_blank" title="Twitter">
                  
                    <i class="fa fa-fw fa-twitter"></i>
                  
                  Twitter
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="https://www.facebook.com/profile.php?id=100006581058735" target="_blank" title="Facebook">
                  
                    <i class="fa fa-fw fa-facebook"></i>
                  
                  Facebook
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://www.zhihu.com/people/HirakuMa" target="_blank" title="知乎">
                  
                    <i class="fa fa-fw fa-share-alt"></i>
                  
                  知乎
                </a>
              </span>
            
          
        </div>

        
        

        
        
          <div class="links-of-blogroll motion-element links-of-blogroll-inline">
            <div class="links-of-blogroll-title">
              <i class="fa  fa-fw fa-globe"></i>
              Links
            </div>
            <ul class="links-of-blogroll-list">
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.cnblogs.com/rubylouvre/" title="司徒正美" target="_blank">司徒正美</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.cnblogs.com/sanshi/" title="三生石上" target="_blank">三生石上</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.cnblogs.com/TomXu/" title="汤姆大叔" target="_blank">汤姆大叔</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://gold.xitu.io/" title="掘金" target="_blank">掘金</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="https://segmentfault.com/" title="segmentfault" target="_blank">segmentfault</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.jianshu.com/users/1cbb94e5ed4d/latest_articles" title="简书" target="_blank">简书</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="https://home.cnblogs.com/" title="博客园" target="_blank">博客园</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="https://www.awesomes.cn/" title="Awesomes" target="_blank">Awesomes</a>
                </li>
              
            </ul>
          </div>
        

      </section>

      
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">
            
              
            
            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#私有前缀"><span class="nav-number">1.</span> <span class="nav-text">私有前缀</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#选择器"><span class="nav-number">2.</span> <span class="nav-text">选择器</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#属性选择器"><span class="nav-number">2.1.</span> <span class="nav-text">属性选择器</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#伪类选择器"><span class="nav-number">2.2.</span> <span class="nav-text">伪类选择器</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#序伪类选择器"><span class="nav-number">2.2.1.</span> <span class="nav-text">序伪类选择器</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#伪元素选择器"><span class="nav-number">2.2.2.</span> <span class="nav-text">伪元素选择器</span></a></li></ol></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#颜色"><span class="nav-number">3.</span> <span class="nav-text">颜色</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#opacity"><span class="nav-number">3.1.</span> <span class="nav-text">opacity</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#transparent"><span class="nav-number">3.2.</span> <span class="nav-text">transparent</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#rgba-0-0-0-0-5"><span class="nav-number">3.3.</span> <span class="nav-text">rgba(0,0,0,0.5);</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#hsla-240-100-40-0-6"><span class="nav-number">3.4.</span> <span class="nav-text">hsla(240, 100%, 40%, 0.6);</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#文本阴影-text-shadow"><span class="nav-number">4.</span> <span class="nav-text">文本阴影 text-shadow</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#盒模型"><span class="nav-number">5.</span> <span class="nav-text">盒模型</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#边框"><span class="nav-number">6.</span> <span class="nav-text">边框</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#边框圆角-border-radius"><span class="nav-number">6.1.</span> <span class="nav-text">边框圆角 border-radius</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#边框阴影-box-shadow"><span class="nav-number">6.2.</span> <span class="nav-text">边框阴影 box-shadow</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#边框图片-border-image"><span class="nav-number">6.3.</span> <span class="nav-text">边框图片 border-image</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#背景"><span class="nav-number">7.</span> <span class="nav-text">背景</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#背景-尺寸-background-size"><span class="nav-number">7.1.</span> <span class="nav-text">背景-尺寸 background-size</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#背景-原点-background-origin"><span class="nav-number">7.2.</span> <span class="nav-text">背景-原点 background-origin</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#背景-裁剪-background-clip"><span class="nav-number">7.3.</span> <span class="nav-text">背景-裁剪 background-clip</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#背景-多背景（以逗号分隔可以设置多背景，可用于自适应局）"><span class="nav-number">7.4.</span> <span class="nav-text">背景-多背景（以逗号分隔可以设置多背景，可用于自适应局）</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#渐变"><span class="nav-number">8.</span> <span class="nav-text">渐变</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#线性渐变（指沿着某条直线朝一个方向产生渐变效果）"><span class="nav-number">8.1.</span> <span class="nav-text">线性渐变（指沿着某条直线朝一个方向产生渐变效果）</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#径向渐变（从一个中心点开始沿着四周产生渐变效果）"><span class="nav-number">8.2.</span> <span class="nav-text">径向渐变（从一个中心点开始沿着四周产生渐变效果）</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#过渡-transition"><span class="nav-number">9.</span> <span class="nav-text">过渡 transition</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2D转换"><span class="nav-number">10.</span> <span class="nav-text">2D转换</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#缩放"><span class="nav-number">10.1.</span> <span class="nav-text">缩放</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#移动"><span class="nav-number">10.2.</span> <span class="nav-text">移动</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#旋转"><span class="nav-number">10.3.</span> <span class="nav-text">旋转</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#旋转原点"><span class="nav-number">10.4.</span> <span class="nav-text">旋转原点</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#倾斜"><span class="nav-number">10.5.</span> <span class="nav-text">倾斜</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3D转换"><span class="nav-number">11.</span> <span class="nav-text">3D转换</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#CSS3-动画"><span class="nav-number">12.</span> <span class="nav-text">CSS3 动画</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#多列布局"><span class="nav-number">13.</span> <span class="nav-text">多列布局</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#伸缩布局"><span class="nav-number">14.</span> <span class="nav-text">伸缩布局</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#flex-direction："><span class="nav-number">14.1.</span> <span class="nav-text">flex-direction：</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#justify-content："><span class="nav-number">14.2.</span> <span class="nav-text">justify-content：</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#align-items：-调整测轴对齐"><span class="nav-number">14.3.</span> <span class="nav-text">align-items：(调整测轴对齐)</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#flex-wrap：-控制是否换行"><span class="nav-number">14.4.</span> <span class="nav-text">flex-wrap：(控制是否换行)</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#align-content：-堆栈（由flex-wrap产生的独立行）对齐"><span class="nav-number">14.5.</span> <span class="nav-text">align-content：(堆栈（由flex-wrap产生的独立行）对齐)</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#flex-flow："><span class="nav-number">14.6.</span> <span class="nav-text">flex-flow：</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#flex-控制子元素伸缩比例"><span class="nav-number">14.7.</span> <span class="nav-text">flex 控制子元素伸缩比例</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#align-self"><span class="nav-number">14.8.</span> <span class="nav-text">align-self</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#order-控制子元素的顺序"><span class="nav-number">14.9.</span> <span class="nav-text">order 控制子元素的顺序</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#web字体-28"><span class="nav-number">15.</span> <span class="nav-text">web字体(28)</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#切割轮播图-28"><span class="nav-number">16.</span> <span class="nav-text">切割轮播图(28)</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#兼容性"><span class="nav-number">17.</span> <span class="nav-text">兼容性</span></a></li></ol></div>
            
          </div>
        </section>
      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2016</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Hongqin Ma</span>
</div>

<div class="powered-by">
  Powered by <a class="theme-link" href="https://hexo.io">Hexo</a>
</div>

<div class="theme-info">
  Theme -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Muse
  </a>
</div>

<script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<span id="busuanzi_container_site_pv">
    &nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;Page Views: <span id="busuanzi_value_site_pv"></span> 
</span>

        

<div class="busuanzi-count">

  <script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>

  
    <span class="site-uv"><i class="fa fa-user"></i><span class="busuanzi-value" id="busuanzi_value_site_uv"></span></span>
  

  
    <span class="site-pv"><i class="fa fa-eye"></i><span class="busuanzi-value" id="busuanzi_value_site_pv"></span></span>
  
  
</div>



        
      </div>
    </footer>

    <div class="back-to-top">
      <i class="fa fa-arrow-up"></i>
    </div>
  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  



  
  <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.0.2"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.0.2"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.0.2"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.0.2"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.0.2"></script>



  

  
    
  

  <script type="text/javascript">
    var duoshuoQuery = {short_name:"Hiraku"};
    (function() {
      var ds = document.createElement('script');
      ds.type = 'text/javascript';ds.async = true;
      ds.id = 'duoshuo-script';
      ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
      ds.charset = 'UTF-8';
      (document.getElementsByTagName('head')[0]
      || document.getElementsByTagName('body')[0]).appendChild(ds);
    })();
  </script>

  
    
    <script src="/lib/ua-parser-js/dist/ua-parser.min.js?v=0.7.9"></script>
    <script src="/js/src/hook-duoshuo.js"></script>
  






  
  

  

  

  
  <script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.1.js"></script>
  <script>AV.initialize("PPmoIQxeu8Sd21h6Tl9TthNx-gzGzoHsz", "rTvbY2H7DvWzRipiBwn72RQ4");</script>
  <script>
    function showTime(Counter) {
      var query = new AV.Query(Counter);
      var entries = [];
      var $visitors = $(".leancloud_visitors");

      $visitors.each(function () {
        entries.push( $(this).attr("id").trim() );
      });

      query.containedIn('url', entries);
      query.find()
        .done(function (results) {
          var COUNT_CONTAINER_REF = '.leancloud-visitors-count';

          if (results.length === 0) {
            $visitors.find(COUNT_CONTAINER_REF).text(0);
            return;
          }

          for (var i = 0; i < results.length; i++) {
            var item = results[i];
            var url = item.get('url');
            var time = item.get('time');
            var element = document.getElementById(url);

            $(element).find(COUNT_CONTAINER_REF).text(time);
          }
          for(var i = 0; i < entries.length; i++) {
            var url = entries[i];
            var element = document.getElementById(url);
            var countSpan = $(element).find(COUNT_CONTAINER_REF);
            if( countSpan.text() == '') {
              countSpan.text(0);
            }
          }
        })
        .fail(function (object, error) {
          console.log("Error: " + error.code + " " + error.message);
        });
    }

    function addCount(Counter) {
      var $visitors = $(".leancloud_visitors");
      var url = $visitors.attr('id').trim();
      var title = $visitors.attr('data-flag-title').trim();
      var query = new AV.Query(Counter);

      query.equalTo("url", url);
      query.find({
        success: function(results) {
          if (results.length > 0) {
            var counter = results[0];
            counter.fetchWhenSave(true);
            counter.increment("time");
            counter.save(null, {
              success: function(counter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(counter.get('time'));
              },
              error: function(counter, error) {
                console.log('Failed to save Visitor num, with error message: ' + error.message);
              }
            });
          } else {
            var newcounter = new Counter();
            /* Set ACL */
            var acl = new AV.ACL();
            acl.setPublicReadAccess(true);
            acl.setPublicWriteAccess(true);
            newcounter.setACL(acl);
            /* End Set ACL */
            newcounter.set("title", title);
            newcounter.set("url", url);
            newcounter.set("time", 1);
            newcounter.save(null, {
              success: function(newcounter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(newcounter.get('time'));
              },
              error: function(newcounter, error) {
                console.log('Failed to create');
              }
            });
          }
        },
        error: function(error) {
          console.log('Error:' + error.code + " " + error.message);
        }
      });
    }

    $(function() {
      var Counter = AV.Object.extend("Counter");
      if ($('.leancloud_visitors').length == 1) {
        addCount(Counter);
      } else if ($('.post-title-link').length > 1) {
        showTime(Counter);
      }
    });
  </script>



  

  

  
  
  <!-- custom analytics part create by xiamo -->
<script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.1.js"></script>
<script>AV.initialize("PPmoIQxeu8Sd21h6Tl9TthNx-gzGzoHsz", "rTvbY2H7DvWzRipiBwn72RQ4");</script>
<script>
function showTime(Counter) {
  var query = new AV.Query(Counter);
  $(".leancloud_visitors").each(function() {
    var url = $(this).attr("id").trim();
    query.equalTo("url", url);
    query.find({
      success: function(results) {
        if (results.length == 0) {
          var content = '0 ' + $(document.getElementById(url)).text();
          $(document.getElementById(url)).text(content);
          return;
        }
        for (var i = 0; i < results.length; i++) {
          var object = results[i];
          var content = object.get('time') + ' ' + $(document.getElementById(url)).text();
          $(document.getElementById(url)).text(content);
        }
      },
      error: function(object, error) {
        console.log("Error: " + error.code + " " + error.message);
      }
    });

  });
}

function addCount(Counter) {
  var Counter = AV.Object.extend("Counter");
  url = $(".leancloud_visitors").attr('id').trim();
  title = $(".leancloud_visitors").attr('data-flag-title').trim();
  var query = new AV.Query(Counter);
  query.equalTo("url", url);
  query.find({
    success: function(results) {
      if (results.length > 0) {
        var counter = results[0];
        counter.fetchWhenSave(true);
        counter.increment("time");
        counter.save(null, {
          success: function(counter) {
            var content =  counter.get('time') + ' ' + $(document.getElementById(url)).text();
            $(document.getElementById(url)).text(content);
          },
          error: function(counter, error) {
            console.log('Failed to save Visitor num, with error message: ' + error.message);
          }
        });
      } else {
        var newcounter = new Counter();
        newcounter.set("title", title);
        newcounter.set("url", url);
        newcounter.set("time", 1);
        newcounter.save(null, {
          success: function(newcounter) {
              console.log("newcounter.get('time')="+newcounter.get('time'));
            var content = newcounter.get('time') + ' ' + $(document.getElementById(url)).text();
            $(document.getElementById(url)).text(content);
          },
          error: function(newcounter, error) {
            console.log('Failed to create');
          }
        });
      }
    },
    error: function(error) {
      console.log('Error:' + error.code + " " + error.message);
    }
  });
}
$(function() {
  var Counter = AV.Object.extend("Counter");
  if ($('.leancloud_visitors').length == 1) {
    addCount(Counter);
  } else if ($('.post-title-link').length > 1) {
    showTime(Counter);
  }
}); 
</script>

  
</body>
</html>
